import http from '@/utils/request'
export default {
/**
* 查询角色列表
* @returns
*/
async getRoleListApi(params) {
return await http.get("/api/role/list", params);
},
/**
* 添加角色
* @returns
*/
async addRoleApi(params) {
  return await http.post("/api/role/add", params);
  },
  /**
* 编辑角色
* @returns
*/
async updateRoleApi(params) {
  return await http.put("/api/role/update", params);
  },
async checkRole(params) {
  return await http.getRestApi("/api/role/check", params);
  },
async deleteRole(params) {
  return await http.delete  ("/api/role/delete", params);
  },
  async getAssignTree(params){
    return await http.get("/api/role/getAssignPermissionTree",params)
  },
  /**
* 分配权限
* @returns
*/
async assignSave(params){
  return await http.post("/api/role/saveRoleAssign",params);
  }
}